package com.sansi.pencilbook.service;

import com.sansi.pencilbook.DO.Result;
import com.sansi.pencilbook.entity.User;

import java.util.List;

/**
 * 功能说明: 用户服务接口
 *
 * @author lsy13
 */
public interface UserServer {

    //注册
    public Result register(User user);

    //登录
    public Result login(String account, String password);

    public Result getAllUsers();

    public Result getUserByAccount(String account);

    public Result addUser(User user);

    //修改个人信息
    public Result modifyUser(User user);

    public Result deleteUser(User user);

    public Result deleteUsers(List<User> users);
}
